package com.emm.yixun.common.model.dto;

import net.sf.oval.constraint.NotEmpty;

/**
 * 类描述： 车位EXCEL模版 创建者： ThinkPad 项目名称： emm-common 创建时间： 2016年5月27日 下午4:36:08 版本号： v1.0
 */
public class CarModel {

	@NotEmpty(message = "组团不能为空")
	private String excel_0;

	@NotEmpty(message = "车区不能为空")
	private String excel_1;

	@NotEmpty(message = "车位不能为空")
	private String excel_2;

	//@NotEmpty(message = "建筑面积")
	private String excel_3;
	
	//@NotEmpty(message = "套内面积")
	private String excel_3_;

/*	@NotEmpty(message = "状态")
	private String excel_4;*/

	//private String excel_5; //备注
	private String excel_6; //大业态
	
	private String excel_7; //业态

	public String getExcel_0() {
		return excel_0;
	}

	public void setExcel_0(String excel_0) {
		this.excel_0 = excel_0;
	}

	public String getExcel_1() {
		return excel_1;
	}

	public void setExcel_1(String excel_1) {

		if (excel_1 == null || excel_1 == "") {
			this.excel_1 = excel_1;
		} else {
			if (isNumeric(excel_1)) {
				this.excel_1 = new Double(excel_1).intValue() + "";
			} else {
				this.excel_1 = excel_1;
			}

		}
	}

	public String getExcel_2() {
		return excel_2;
	}

	public void setExcel_2(String excel_2) {
		if (excel_2 == null || excel_2 == "") {
			this.excel_2 = excel_2;
		} else {
			if (isNumeric(excel_2)) {
				this.excel_2 = new Double(excel_2).intValue() + "";
			} else {
				this.excel_2 = excel_2;
			}

		}
	}

	public String getExcel_3() {
		return excel_3;
	}

	public void setExcel_3(String excel_3) {
		this.excel_3 = excel_3;
	}

	public String getExcel_3_() {
		return excel_3_;
	}

	public void setExcel_3_(String excel_3_) {
		this.excel_3_ = excel_3_;
	}

	/*public String getExcel_4() {
		return excel_4;
	}

	public void setExcel_4(String excel_4) {
		this.excel_4 = excel_4;
	}*/

	/*public String getExcel_5() {
		return excel_5;
	}

	public void setExcel_5(String excel_5) {
		this.excel_5 = excel_5;
	}*/

	public boolean isNumeric(String str) {
		try {
			Double.valueOf(str);
		} catch (Exception e) {
			return false;
		}
		return true;
	}

	public String getExcel_6() {
		return excel_6;
	}

	public void setExcel_6(String excel_6) {
		this.excel_6 = excel_6;
	}

	public String getExcel_7() {
		return excel_7;
	}

	public void setExcel_7(String excel_7) {
		this.excel_7 = excel_7;
	}
	
}
